home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 43
/
Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso
/
-serious-
/
wb
/
backclock
/
sources
/
conf.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-06-15
|
817b
|
29 lines
/* entete: conf.h version 1.2 10-01-99
*/
#define CF_NAMEENV "env:backclock.prefs"
#define CF_NAMEENVARC "envarc:backclock.prefs"
#define ERR_ENV "File error %ld on ENV:backclock.prefs"
#define ERR_ENVARC "File error %ld on ENVARC:backclock.prefs"
struct ConfFile {
UBYTE id[4] ; // BACK
UWORD posX,
posY,
lenX,
lenY ;
struct RGB cmap[NUM_COLORS] ;
UWORD fill ; // fill or transparent
UWORD filln ; // fill needles
UWORD drawsec ; // draw the seconds ?
UWORD drawsha ; // shadows ?
UWORD drawmpo ; // middle point ?
} ;
// prepare the file to be saved
BOOL SaveConf(idWin * prj, UBYTE *) ;
BOOL LoadConf(idWin * prj) ;
// save prefs file to env (and to envarc)
void SaveEnv(idWin * prj, BOOL envarc) ;